package com.foo
/**
 * Created by tzp on 16-12-7.
 */
def test = new Test22()
test.hello("tzp")

def java = test.useJava()
println java

def map = [:]
map["name"] = "map"
println map["name"]

def w = {}
w["gender"] = "male"
println w["gender"]

def ar = ['a', 'b']
def a = "a"
if (ar.contains(a)) {
    println "contains $a"
}

def n = "t/z/p".split('/')[-1]
println n

def ar2 = []
ar2.addAll(ar)
ar2.remove(0)
println ar2[0]

def b = """$a
b
c
d
"""
b.eachLine { println it }